<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich">

	<ui:composition template="/templates/baseLayout.xhtml">
			<ui:define name="pageTitle">Add New Client</ui:define>
			<ui:define name="body">
				<rich:tabPanel>
					<h:form id="addClient">
						<rich:tab>
							<rich:panel header="Add Client">
								<h:panelGrid columns="2" width="100%">
									<h:outputLabel value="Client Name" />
									<h:inputText value="#{client.name}" />
									<h:outputLabel value="Client Description" />
									<h:inputText value="#{client.description}" />
									<h:outputLabel value="Year Established" />
									<h:inputText value="#{client.yearEstd}" />
									<h:outputLabel value="Registered Name" />
									<h:inputText value="#{client.registeredName}" />						
								</h:panelGrid>								
							</rich:panel>							
						</rich:tab>
						<rich:tab>
							<rich:panel header="Primary Location">
								<h:panelGrid columns="2" width="100%">
									<h:outputLabel value="Location Type" />
									<h:inputText value="#{location.type}" />
									<h:outputLabel value="Address 1" />
									<h:inputText value="#{location.address}" />
									<h:outputLabel value="Address 2" />
									<h:inputText value="#{location.address}" />
									<h:outputLabel value="City" />
									<h:inputText value="#{location.city}" />
									<h:outputLabel value="State" />
									<h:inputText value="#{location.state}" />
									<h:outputLabel value="Country" />
									<h:inputText value="#{location.country}" />
									<h:outputLabel value="Zip Code" />
									<h:inputText value="#{location.zipCode}" />						
								</h:panelGrid>								
							</rich:panel>						
						</rich:tab>
						<h:commandButton value="Submit" action="#{clientAction.saveClient}" />
					</h:form>					
				</rich:tabPanel>
			</ui:define>
	</ui:composition>

</html>